package com.itheima.organization.service;

import com.github.pagehelper.Page;
import com.itheima.aom.pojo.Aom;
import com.itheima.aom.pojo.AomOrder;
import com.itheima.aom.pojo.QueryPageBean;

import java.util.List;
import java.util.Map;

public interface AomOrderService {

    /**
     * 分页查询
     * @param map
     * @param page
     * @param size
     * @return
     */
    public Page<AomOrder> findPage(Map<String, Object> map, Integer page, Integer size);

    public List<Aom> findByPhoneNu(String phone);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    public AomOrder findById(Long id);

    /**
     * 更新订单表aomOrder
     * @param aomOrder
     */
    public void update(AomOrder aomOrder);

    /**
     * 新增订单
     * @param aomOrder
     */
    public void add(AomOrder aomOrder);


}
